<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
  <head>
  		<%@ include file="/pages/common/common.jsp" %>	
  		<script type="text/javascript">
  			function upload(){
  				var r = $('#uploadForm').form('validate');
				if(!r)
					return false;
  				$("#uploadForm").submit();
  				$("#uploadForm").hide();
  				$("#loadDiv").show();
  			}
  		</script>
  </head>  
  <body>
	<form class="auform" id="uploadForm" method="post" action="${ctx}/common/upload.action" enctype="multipart/form-data">
		<input type="hidden" name="fieldName" value="${param.fieldName}">
		<table class="autable">
			<tr>
				<td class="autd1">选择：</td>
				<td class="autd2"><input name="file" type="file" style="width:150px" class="txt" required="true"></td>
			</tr>
			<tr>
				<td class="autd3" colspan="2">
					<a href="#" id="btn-back" onclick="parent.$('#uploadWindow').window('close');" class="easyui-linkbutton" iconCls="icon-cancel">取消</a>
					<a href="#" id="btn-add" onclick="upload();" class="easyui-linkbutton" iconCls="icon-save">上传</a>
				</td>
			</tr>
		</table>
	</form>
	<div id="loadDiv" style="display: none;">
		<img src="${ctx}/js/jquery/jquery-easyui-1.2.5/themes/default/images/panel_loading.gif"/><span style="font-size: 13px;">正在上传...</span>
	</div>
  </body>
</html>
